$OpenBSD: patch-js_src_jsopcode_cpp,v 1.1 2017/05/21 13:12:45 espie Exp $

Index: js/src/jsopcode.cpp
--- js/src/jsopcode.cpp.orig
+++ js/src/jsopcode.cpp
@@ -1391,7 +1391,7 @@ ExpressionDecompiler::write(JSString *str)
 bool
 ExpressionDecompiler::quote(JSString *s, uint32_t quote)
 {
-    return QuoteString(&sprinter, s, quote) >= 0;
+    return QuoteString(&sprinter, s, quote) != 0;
 }
 
 JSAtom *
